#pragma strict

var target : Transform;
var strength : int;

function Update() {

	var targetRotation = Quaternion.LookRotation(target.position - transform.position);
	var trnSpeed = Mathf.Min(strength * Time.deltaTime, 1);
	transform.rotation = Quaternion.Lerp(transform.rotation, targetRotation, trnSpeed);
	
}